<template>
  <view class="my">
    <!-- 未登录显示的组件 -->
    <my-login v-if="!token"></my-login>
    <!-- 登录显示的组件 -->
    <my-information v-else></my-information>
  </view>
</template>

<script>
  import badgeMixins from '@/mixins/tabbar-badge.js'
  import { mapState } from 'vuex'
  
  export default {
    // 挂载mixins
    mixins: [badgeMixins],
    data() {
      return {
        
      };
    },
    methods: {
      
    },
    computed: {
      ...mapState('m_user', ['token'])
    }
  }
</script>

<style lang="scss">
  page, .my {
    height: 100%;
  }
</style>
